// 示例数据
export const protocolExample = {
    name: "msgType 10",
    fields: [
        {name: "dst", type: "u8", size: 1, description: "目的地址"},
        {name: "src", type: "u8", size: 1, description: "源地址"},
        {name: "bodyLen", type: "u16", size: 2, description: "消息体长度"},
        {name: "msgType", type: "u8", size: 1, description: "消息类型"},
        {
            name: "sat_info",
            type: "object",
            fields: [
                {name: "mcu_no", type: "u8", size: 1, description: "MCU编号"},
                {name: "sat_count", type: "u8", size: 1, description: "卫星数量"},
                {
                    name: "satellites",
                    type: "array",
                    count_from: "sat_count",
                    fields: [
                        {name: "sat_id", type: "u8", size: 1, description: "卫星ID"},
                        {name: "param1", type: "u16", size: 2, description: "参数1"},
                        {name: "param2", type: "u16", size: 2, description: "参数2"},
                        {name: "beam_count", type: "u8", size: 1, description: "波束数量"},
                        {
                            name: "beams",
                            type: "array",
                            count_from: "beam_count",
                            fields: [
                                {name: "beam_id", type: "u16", size: 2, description: "波束ID"},
                                {name: "param3", type: "u8", size: 1, description: "参数3"},
                                {name: "param4", type: "u16", size: 2, description: "参数4"}
                            ]
                        }
                    ]
                }
            ]
        }
    ]
};
